/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.clbs.ex.springgwt.server.mapper;

import com.clbs.ex.springgwt.client.model.Post;
import com.clbs.ex.springgwt.server.extractor.PostExtractor;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;


/**
 *
 * @author peerawat.poombua
 */
public class PostMapper implements RowMapper {

    public Post mapRow(ResultSet rs, int rowNum) throws SQLException {
       PostExtractor postExtractor = new PostExtractor();
       return postExtractor.extractData(rs);
    }
}
